//
//  MessageModel.m
//  Civacrm
//
//  Created by zhk on 2017/2/8.
//  Copyright © 2017年 王桂敏. All rights reserved.
//

#import "MessageModel.h"

@implementation MessageModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

- (CGFloat)heightAccordingText:(NSString *)text{
    
    CGFloat height = [text boundingRectWithSize:CGSizeMake(kScreenWidth - 40, MAXFLOAT) options:(NSStringDrawingUsesLineFragmentOrigin) attributes:@{NSFontAttributeName:font(26)} context:nil].size.height;
    return height > 20 ? height : 20;
}

@end
